﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ComPwdPrint.aspx.cs" Inherits="HZ.DrugTrade.Web.Admin.SystemManage.ComPwdPrint" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
     <title>企业用户名发放</title>
    <style type="text/css">
        body
        {
            font-family: Arial, Helvetica, sans-serif;
            font-size: 16px;
            margin: 0 auto;
            padding: 0px;
            background-image:url(../../lib/images/backImg.jpg);
        }
        #container
        {
            margin: 5px auto 0px;
            padding: 0px 10px;
            width: 600px;
            height: 500px;
            line-height: 2em;
            border: 0px solid #000000;
        }
        *html .title
        {
            font-family: 黑体;
            font-size: 24px;
            font-weight: bold;
            text-align: center;
            padding: 5px 0px 0px 0px;
        }
        .title
        {
            font-family: 黑体;
            font-size: 24px;
            font-weight: bold;
            text-align: center;
        }
        .stamp
        {
            padding:1px 0px 0px 350px;
        }
        .date
        {
            padding: 1px 0px 0px 350px;
        }
        .content
        {
            text-indent: 2em;
        }
        a
        {
            text-decoration: underline;
            color: #000000;
            cursor: text;
        }
        span
        {
            font-weight: bold;
        }
        table
        {
            text-align: left;
            padding-left: 10px;
            border-collapse: collapse;
            margin: 0 auto;
        }
        table tr td
        {
            border: 1px solid #000000;
        }
    </style>

    <script language="JavaScript">
        //禁止刷新，回退 
        function onKeyDown() {
            if ((event.altKey) || ((event.keyCode == 8) &&
(event.srcElement.type != "text" &&
event.srcElement.type != "textarea" &&
event.srcElement.type != "password")) ||
((event.ctrlKey) && ((event.keyCode == 78) || (event.keyCode == 82))) ||
(event.keyCode == 116)) {
                event.keyCode = 0;
                event.returnValue = false;
            }
        }
        document.onkeydown = onKeyDown;
        function stop() { //这个是禁用鼠标右键 
            return false;
        }
        var hkey_root, hkey_path, hkey_key
        hkey_root = "HKEY_CURRENT_USER";
        hkey_path = "\\Software\\Microsoft\\Internet Explorer\\PageSetup\\";

        //设置网页打印的页眉页脚为空
        function pagesetup_null() {
            try {
                var RegWsh = new ActiveXObject("WScript.Shell")
                hkey_key = "header"
                RegWsh.RegWrite(hkey_root + hkey_path + hkey_key, "")
                hkey_key = "footer"
                RegWsh.RegWrite(hkey_root + hkey_path + hkey_key, "")
            } catch (e) { }
        }
        //设置网页打印的页眉页脚为默认值
        function pagesetup_default() {
            try {
                var RegWsh = new ActiveXObject("WScript.Shell")
                hkey_key = "header"
                RegWsh.RegWrite(hkey_root + hkey_path + hkey_key, "&w&b页码，&p/&P")
                hkey_key = "footer"
                RegWsh.RegWrite(hkey_root + hkey_path + hkey_key, "&u&b&d")
            } catch (e) { }
        }


        document.oncontextmenu = stop;

        function pwdPrint() {
            var a = document.getElementById("tdName").innerHTML;
            document.getElementById("tdName2").innerHTML = a;

            document.getElementById("pwdPrint").style.display = "none";
            pagesetup_default();
            window.print();
            document.getElementById("pwdPrint").style.display = "block";
        }
  
    </script>

</head>
<body onload="pwdPrint();">
    <form id="form1" runat="server">
    <div id="container">
        <p class="title">
            <br />
            2012年内蒙古医用耗材网上集中采购用户名发放单</p>
       
        <p class="content">
            &nbsp;<a href="#"><asp:Literal runat="server" ID="ltrComName0"></asp:Literal></a>
            已于<a href="#"><asp:Literal runat="server" ID="ltrDate"></asp:Literal></a>
            领取“内蒙古医用耗材网上集中采购系统”的用户名与密码。</p>
       
        <table width="90%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td align="right">
                    企业名称：
                </td>
                <td>
                    <asp:Literal runat="server" ID="ltrComName"></asp:Literal>
                </td>
            </tr>
            <tr>
                <td align="right" width="180px">
                    用户名：
                </td>
                <td id="tdName2">
                </td>
            </tr>
            <tr>
                <td align="right">
                    企业类型：
                </td>
                <td>
                    <asp:Literal runat="server" ID="ltrComType"></asp:Literal>
                </td>
            </tr>
            
            <%--<tr>
                <td align="right">
                    <asp:Literal runat="server" ID="ltrJY" Text="经营企业名称：" Visible="false"></asp:Literal>
                </td>
                <td>
                    <asp:Literal runat="server" ID="ltrComNameJY" Visible="false"></asp:Literal>
                </td>
            </tr>--%>
            <tr>
                <td align="right" width="180px" >
                    被委托人：
                </td>
                <td>
                    <asp:Literal runat="server" ID="ltrName"></asp:Literal>
                </td>
            </tr>
            <%--<tr style="display: none;">
                <td align="right">
                    委托人身份证：
                </td>
                <td>
                    <asp:Literal runat="server" ID="ltrCard"></asp:Literal>
                </td>
            </tr>--%>
            <tr  style="border-bottom: 1px solid #000000" >
                <td align="right">
                    被委托人联系电话：
                </td>
                <td>
                    <asp:Literal runat="server" ID="ltrTel"></asp:Literal>
                </td>
            </tr>
           
           
         
        </table>
      
        <p class="stamp">
            被委托人签字：</p>
        <p class="date">
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Literal runat="server"
                ID="ltrDate2"></asp:Literal>
        </p>
         
        <p style="text-align: right; font-size: 15px;">
            发放人：<asp:Literal runat="server" ID="ltrOperator"></asp:Literal>&nbsp;&nbsp;<asp:Literal
                runat="server" ID="ltrOperateTime" Visible="false"></asp:Literal>
        </p>
    </div>
    <div id="container">
        <br />
        <br />
      
        <p class="title">
                    2012年内蒙古医用耗材网上集中采购<br />
                    用户名发放单(回执)</p>
         
        <p class="content">
            &nbsp;我企业（<a href="#"><asp:Literal runat="server" ID="ltrComName1"></asp:Literal></a>）已于<a
                href="#"><asp:Literal runat="server" ID="ltrDate1"></asp:Literal></a>
            领取“内蒙古医用耗材网上集中采购系统”的用户名与密码。</p>
         
     
            <table width="90%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td align="right" width="180px">
                        用户名：
                    </td>
                    <td id="tdName">
                        <asp:Literal runat="server" ID="ltrUserName"></asp:Literal>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        密码：
                    </td>
                    <td>
                        <asp:Literal runat="server" ID="ltrPwd"></asp:Literal>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        网址：
                    </td>
                    <td>
                        <asp:Literal runat="server" ID="ltrNetAddress" Text="http://www.nmgyxcg.gov.cn"></asp:Literal>
                    </td>
                </tr>
            </table>
            <br />
            <span style="text-align: center;">
                <asp:Literal runat="server" ID="ltrTip"></asp:Literal>
            </span>
    </div>
    <div align="center" id="pwdPrint">
        <input type="button" value="打印" onclick="pwdPrint();" />
    </div>
    </form>
</body>
</html>
